package deo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-04-14
 * Time: 15:27
 */

class Singleton{
    private static Singleton instance  = null;

    public static Singleton getInstance(){
        return instance;
    }

    private Singleton(){

    }

}

public class demo1 {
    public static void main(String[] args) {
        Singleton singleton1 = Singleton.getInstance();
        Singleton singleton2 = Singleton.getInstance();
        System.out.println(singleton1 == singleton2);
    }
}
